import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const Recommend = () =>
    import ('views/recommend/Recommend.vue')
const MusicList = () =>
    import ('views/music-list/MusicList.vue')
const Mv = () =>
    import ('views/mv/Mv.vue')
const NewSongs = () =>
    import ('views/new-songs/NewSongs.vue')
const RankList = () =>
    import ('views/rank-list/RankList.vue')
const Singer = () =>
    import ('views/singer/Singer.vue')
const MusicListDetail = () =>
    import ('views/music-list-detail/MusicListDetail')
const routes = [{
        path: '/',
        redirect: '/recommend'
    },
    {
        path: '/recommend',
        component: Recommend
    },
    {
        path: '/musiclist',
        component: MusicList
    },
    {
        path: '/mv',
        component: Mv
    },
    {
        path: '/newsongs',
        component: NewSongs
    },
    {
        path: '/ranklist',
        component: RankList
    },
    {
        path: '/singer',
        component: Singer
    },
    {
        path: '/musiclistdetail',
        component: MusicListDetail
    }
]

const router = new VueRouter({
    routes
})

export default router